package com.kly.user.service;

import com.fqgj.common.api.Response;
import com.kly.user.dto.AdJustUserMappingReq;
import com.kly.user.dto.StoreReportReq;
import com.kly.user.enums.AdjustEventDefType;
import java.util.Map;

/**
 * 推送数据到adjust
 */
public interface AdjustService {

    /**
     * adjust 报告存储
     */
    Response storeAppsFlyerReport(StoreReportReq storeReportReq);


    /**
     * 异步推送数据到adjust
     */
    Response asyncTraceEvent(AdjustEventDefType eventType, Map<String, Object> pushData);

    /**
     * 存储adjust用户与系统用户映射关系
     */
    Response queryOrStoreIfNotExists(AdJustUserMappingReq adJustUserMappingReq);

    /**
     * 更新adjust信息
     */
    Response updateAdjustInfo(AdJustUserMappingReq adJustUserMappingReq);

    /**
     * 是否为新用户
     */
    Response<Boolean>  fetNewAccountFlag(String userCode);

}
